package org.webbase.report.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.webbase.system.pojo.Pojo;

@Entity
@Table(name="rpt_form_column")
public class FormColumn extends Pojo {
	
	public static final int DISPLAY_FALSE = 0; // 是否显示该列:否
	public static final int DISPLAY_TRUE = 1; // 是否显示该列:是
	
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(generator = "uuid")
	private String id;
	
	@Column(name="form_id",length=36,nullable=false)
	private String formId;

	@Column(name="name",length=50,nullable=false)
	private String name;
	
	@Column(name="width",precision=8)
	private Integer width;
	
	@Column(name="display",precision=8)
	private Integer display;
	
	@Column(name="type",length=100,nullable=false)
	private String type;
		
	@Column(name="description",length=256)
	private String description;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getFormId() {
		return formId;
	}

	public void setFormId(String formId) {
		this.formId = formId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getWidth() {
		return width;
	}

	public void setWidth(Integer width) {
		this.width = width;
	}

	public Integer getDisplay() {
		return display;
	}

	public void setDisplay(Integer display) {
		this.display = display;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}